package cn.itcast.flink.streaming;

/**
 * Author itcast
 * Date 2021/10/5 23:33
 * 使用Math类，生成5个1~10之间的随机整数, 并将结果打印到控制台.
 */
public class RandomTest1 {
    public static void main(String[] args) {
        for (int i = 0; i < 5; i++) {
            int v = (int) (Math.random() * 10 + 1);
            System.out.println(v);
        }
    }
}
